package org.utils
{
	import flash.display.Sprite;
	import flash.geom.Point;

	public class PointControl
	{
		public function PointControl()
		{
		}
		
		public static function transPos(obj:Sprite,matchobj:Sprite){
			
			var p:Point=new Point(obj.x,obj.y)	
		    p=obj.parent.localToGlobal(p)
		    p=matchobj.globalToLocal(p)
			matchobj.addChild(obj)
			obj.x=p.x
			obj.y=p.y
				
		}
		
	}
}

